package MediaOnline.Adapter;


import java.util.ArrayList;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.TextView;


public class DanhSachTapPhimAdapter extends BaseAdapter {
	public Context context;
	//arrListFilm de gan vao gridview
	public static ArrayList<Integer> arrTapFilm = new ArrayList<Integer>();
    
    public DanhSachTapPhimAdapter(Context ctx) {
        context=ctx;
    }

    public int getCount() {
        return arrTapFilm.size();
    }
    //	
    public Object getItem(int position) {
        return null;
    }

    public long getItemId(int position) {
        return 0;
    }

    public void insertValue (){
    	
    }
    
    //Get list video su dung webservice va gan vao arrListFilm
    public void getListVideo(final Context x, int FilmCatID){
		
    }
    

    

	public View getView(final int position, View convertView, ViewGroup parent) {
    	TextView tv;
        if (convertView == null) {
            tv = new TextView(context);
            tv.setLayoutParams(new GridView.LayoutParams(100, 45));
        }
        else {
            tv = (TextView) convertView;
        }
        	//tv.setTextColor(R.color.gold);
            tv.setText("Tập "+(position+1));
            //tv.setTextColor(R.color.orange);
            tv.setTextSize(16);
        return tv;

    }
}